//
// Author    : Pablo Bosch 
// Contact   : pboschvivancos@epo.org
// Created   : 08/05/2005
// Last Modif: 09/05/2005
//

var  CURRENTVIEW="";

function print_dossierwindow(html) {
  var popup = window.open("","Dossier","resizable,menubar,dependent,scrollbars");
  popup.document.title=" --- Dossier "+GetDossierNumber()+" -- ClaimSet Version "+GetClaimSetVersion();
  popup.document.write("<link rel='stylesheet' href='claimtoolprt.css'>");
  popup.document.write("<H3>Dossier "+GetDossierNumber()+" ("+GetDossierOrdNum()+") ");
  popup.document.write("-- Application "+GetClaimSetAppNum()+" Claimset "+GetClaimSetVersion());
  popup.document.write(" ---<SPAN ALIGN='RIGHT'> Pri:"+GetDossierPri()+"</SPAN></H3>");
  popup.document.write(html);
  popup.document.close();
  popup.focus();
}


function print_window(title,html) {
  var popup = window.open("",title || "ClaimTool","resizable,menubar,dependent,scrollbars");
  if(popup) {
    popup.document.write(html || "Empty page");
    popup.document.close();
    popup.focus();
  } else {
    alert("Cannot create print window");
  }
}

function print_view() {
  if(ACT_MOD.printhook) {
    print_dossierwindow(ACT_MOD.printhook());
  } else {
    alert("No printing possible for this page");
  }
}

